import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "vant/lib/icon/local.css";
import "@/assets/scss/global.scss";

import {
  Icon,
  Image,
  Cell,
  CellGroup,
  loading,
  Button,
  Toast,
  NavBar,
  Field,
  Tag,
  Collapse,
  CollapseItem,
  List,
  ActionSheet,
  Dialog,
  Panel,
  Switch,
  CountDown,
  PullRefresh,
  Overlay
} from "vant";

Vue.use(Image);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(loading);
Vue.use(Button);
Vue.use(Toast);
Vue.use(NavBar);
Vue.use(Field);
Vue.use(Tag);
Vue.use(List);
Vue.use(ActionSheet);
Vue.use(Dialog);
Vue.use(CountDown);
Vue.use(Panel);
Vue.use(Switch);
Vue.use(PullRefresh);
Vue.use(Collapse).use(CollapseItem);
Vue.use(Overlay);
// Vue.use(Lazyload, {
//     preLoad: 1.3,
//     error: require('@/assets/images/goods_default.png'),
//     loading: require('@/assets/images/goods_default.png'),
//     attempt: 1,
//     listenEvents: ['scroll'],
//     lazyComponent: true
// });
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
